<template>
	<view class="content">
		<rich-text :nodes="privacyData" class="privacy"></rich-text>
	</view>
</template>

<script>
	import api from '../../api'
	export default {
		data() {
			return {
				privacyData:''
			}
		},
		onLoad() {
			this.getContent()
		},
		onShow(){
			
		},
		
		methods: {
			getContent(){
				uni.showLoading({
					title:'数据加载中'
				})
				api.contents.show('vip_rule').then(res => {
					if (res.code === 200) {
						uni.hideLoading()
						this.privacyData = res.data.content
					}
				}).catch(error => {
					console.log(error)
				})
			}
		},
	}
</script>

<style lang="scss">
	.content {
		width: 720rpx;
		margin: 20rpx auto;
	}
</style>